package com.our.sys.project1.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

@Entity
@Table(name = "C_StockListDetail")
public class StockListDetail implements Serializable {

    private static final long serialVersionUID = -4175498333878780956L;

    @ViewField
    private Long id;
    @ViewField
    private Long consumId;
    @ViewField(header = "消耗品", width = 250, align = "left")
    private String consumName;
    @ViewField(header = "物品规格", width = 150, align = "left")
    private String spec;
    @ViewField(header = "单位", width = 150, align = "left")
    private String unit;
    @ViewField(header = "包装单位", width = 150, align = "left")
    private String packaging;
    @ViewField(header = "换算因子", width = 150, align = "left")
    private String pre;
    @ViewField(header = "零价", width = 150, align = "left")
    private BigDecimal price;
    @ViewField(header = "进价", width = 150, align = "left")
    private BigDecimal lastPrice;
    @ViewField
    private Long stackId;
    @ViewField(header = "货位代码", width = 200, align = "left")
    private String stackName;
    @ViewField(header = "生产厂家", width = 150, align = "left")
    private String producer;
    @ViewField(header = "入库数量", width = 150, align = "left")
    private BigDecimal amount;
    @ViewField(header = "现零价", width = 150, align = "left")
    private BigDecimal nowPrice;
    @ViewField(header = "现进价", width = 150, align = "left")
    private BigDecimal nowInPrice;
    @ViewField(header = "零价金额", width = 150, align = "left")
    private BigDecimal nowMoney;
    @ViewField(header = "进价金额", width = 150, align = "left")
    private BigDecimal nowInMoney;
    @ViewField
    private Long listId;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "C_StockListDetail")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getConsumId() {
        return consumId;
    }

    public void setConsumId(Long consumId) {
        this.consumId = consumId;
    }

    public String getConsumName() {
        return consumName;
    }

    public void setConsumName(String consumName) {
        this.consumName = consumName;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPackaging() {
        return packaging;
    }

    public void setPackaging(String packaging) {
        this.packaging = packaging;
    }

    public String getPre() {
        return pre;
    }

    public void setPre(String pre) {
        this.pre = pre;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(BigDecimal lastPrice) {
        this.lastPrice = lastPrice;
    }

    public Long getStackId() {
        return stackId;
    }

    public void setStackId(Long stackId) {
        this.stackId = stackId;
    }

    public String getStackName() {
        return stackName;
    }

    public void setStackName(String stackName) {
        this.stackName = stackName;
    }

    public String getProducer() {
        return producer;
    }

    public void setProducer(String producer) {
        this.producer = producer;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getNowPrice() {
        return nowPrice;
    }

    public void setNowPrice(BigDecimal nowPrice) {
        this.nowPrice = nowPrice;
    }

    public BigDecimal getNowInPrice() {
        return nowInPrice;
    }

    public void setNowInPrice(BigDecimal nowInPrice) {
        this.nowInPrice = nowInPrice;
    }

    public BigDecimal getNowMoney() {
        return nowMoney;
    }

    public void setNowMoney(BigDecimal nowMoney) {
        this.nowMoney = nowMoney;
    }

    public BigDecimal getNowInMoney() {
        return nowInMoney;
    }

    public void setNowInMoney(BigDecimal nowInMoney) {
        this.nowInMoney = nowInMoney;
    }

    public Long getListId() {
        return listId;
    }

    public void setListId(Long listId) {
        this.listId = listId;
    }

}
